define(['text!service/myinfo.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'service_myinfo',
			events: {
				"click #edit": "edit",
				"click #submit1": "submit1",
				"click #submit2": "submit2",
				"click #submit3": "submit3",
			},
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				//write your business logic here :)
			},
			edit: function() {

				console.info("111");
				$(".text").toggle();
				$(".edito").toggle();
			},
			submit1: function() {
				
				console.info("submit1");
			},
			submit2: function() {

				console.info("submit2");
			},
			submit3: function() {
				console.info("submit3");

			}
		}); //view define

	});